﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="~/js/jquery-1.11.1.js"></script>
    <link href="~/css/table.css" rel="stylesheet" />
    <link href="~/css/cwcalendar.css" rel="stylesheet" />
    <script src="~/javascript/comm/comm.js"></script>
    <script src="~/javascript/comm/list.js"></script>
    <script src="~/javascript/calendar-ch.js"></script>
    <script src="~/javascript/jquery-1.7.2.js"></script>
    <script src="~/javascript/locate.js"></script>
    <script src="~/javascript/select.js"></script>
    <script src="~/js/vue.js"></script>
    <script src="~/js/jquery.unobtrusive-ajax.js"></script>

    <script type="text/javascript">
       
        function sf() {
            $("#pass_checkComment").text("不通过");
        }
        function ly() {

            $("#pass_checkComment").text("通过");
        }
    </script>
</head>

<body>
    <div id="app">
        <form id="form1" enctype="multipart/form-data">
            <input type="hidden" name="res_id" value="@ViewData["id"]" />
            <table width="100%">
                <tr>
                    <td>
                        <font color="black">您正在做的业务是：人力资源--招聘管理--录用管理--录用申请  </font>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <input type="radio" name="interview_status" value="-1" onclick="sf()">释放简历
                        <input type="radio" name="interview_status" value="3" checked="checked" onclick="ly()">申请录用
                        <input type="button" value="确认" class="BUTTON_STYLE1"
                               v-on:click="Update()">
                        <input type="button" value="返回" class="BUTTON_STYLE1"
                               onclick="history.back();">

                    </td>
                </tr>
            </table>
            <table width="100%" border="1" cellpadding=0 cellspacing=1
                   bordercolorlight=#848284 bordercolordark=#eeeeee
                   class="TABLE_STYLE1">
                <tbody v-for="(item,index) in engage_resume">
                    <tr>
                        <td class="TD_STYLE1">
                            职位分类
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_major_kind_name" disabled />
                            <input type="hidden" class="INPUT_STYLE2" :value="item.human_major_kind_id" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            职位名称
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_major_name" disabled />
                            <input type="hidden" class="INPUT_STYLE2" :value="item.human_major_id" disabled />
                        </td>
                        <td width="11%" class="TD_STYLE1">
                            招聘类型
                        </td>
                        <td class="TD_STYLE2" colspan="2">
                            <input type="text" class="INPUT_STYLE2" :value="item.engage_type" disabled />
                        </td>
                        <td rowspan="6">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            姓名
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_name" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            性别
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_sex" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            EMAIL
                        </td>
                        <td colspan="2" class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_email" disabled>
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            电话
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_telephone" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            家庭电话
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_homephone" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            手机
                        </td>
                        <td colspan="2" class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_mobilephone" disabled>
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            住址
                        </td>
                        <td colspan="3" class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_address" disabled>
                        </td>

                        <td class="TD_STYLE1">
                            邮编
                        </td>
                        <td colspan="2" class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_postcode" disabled>
                        </td>
                    </tr>

                    <tr>
                        <td class="TD_STYLE1">
                            国籍
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_nationality" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            出生地
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_birthplace" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            生日
                        </td>
                        <td width="13%" colspan="2" class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_birthday|cdate" disabled>
                        </td>
                    </tr>
                    <tr>
                        <td width="11%" class="TD_STYLE1">
                            民族
                        </td>
                        <td class="TD_STYLE2" width="14%">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_race" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            宗教信仰
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_religion" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            政治面貌
                        </td>
                        <td class="TD_STYLE2" colspan="2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_party" disabled>
                        </td>


                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            身份证号码
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_idcard" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            年龄
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_age" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            毕业院校
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_college" disabled>
                        </td>

                        <td class="TD_STYLE1">
                            学历
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_educated_degree" disabled>
                        </td>

                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            教育年限
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_educated_years" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            学历专业
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_educated_major" disabled>
                        </td>

                        <td class="TD_STYLE1">
                            薪酬要求
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.demand_salary_standard" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            注册时间
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.regist_time|cdate" disabled>
                        </td>
                    </tr>

                    <tr>

                        <td class="TD_STYLE1">
                            特长
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_specility" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            爱好
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.human_hobby" disabled>
                        </td>
                        <td class="TD_STYLE1">
                            推荐人
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.checker" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            &nbsp;
                        </td>
                        <td class="TD_STYLE2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            个人履历
                        </td>
                        <td colspan="7" class="TD_STYLE2">
                            <textarea rows="4" class="TEXTAREA_STYLE1" :value="item.human_history_records" disabled></textarea>
                        </td>
                    </tr>

                    <tr>
                        <td class="TD_STYLE1">
                            备注
                        </td>
                        <td colspan="7" class="TD_STYLE2">
                            <textarea rows="4" class="TEXTAREA_STYLE1" :value="item.remark" disabled></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            筛选推荐意见
                        </td>
                        <td colspan="7" class="TD_STYLE2">
                            <textarea rows="4" class="TEXTAREA_STYLE1" :value="item.recomandation" disabled></textarea>
                        </td>
                    </tr>
                </tbody>
                <tfoot v-for="(item,index) in engage_interview">
                    <tr>
                        <td class="TD_STYLE1">
                            面试次数
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.interview_amount" name="interview_amount" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            形象评价
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.image_degree" name="image_degree" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            口才评价
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.native_language_degree" name="native_language_degree" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            外语口语能力
                        </td>
                        <td class="TD_STYLE1">
                            <input type="text" class="INPUT_STYLE2" :value="item.foreign_language_degree" name="foreign_language_degree" disabled />
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            应变能力
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.response_speed_degree" name="response_speed_degree" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            EQ
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.EQ_degree" name="EQ_degree" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            IQ
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.IQ_degree" name="IQ_degree" disabled />
                        </td>
                        <td class="TD_STYLE1">
                            综合素质
                        </td>
                        <td class="TD_STYLE1">
                            <input type="text" class="INPUT_STYLE2" :value="item.multi_quality_degree" name="multi_quality_degree" disabled />
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            面试人
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.register"  disabled />
                        </td>
                        <td class="TD_STYLE1">
                            面试时间
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.registe_time|cdate"  disabled />
                        </td>
                        <td class="TD_STYLE1">
                            筛选人
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" class="INPUT_STYLE2" :value="item.checker" disabled  />
                        </td>
                        <td class="TD_STYLE1">
                            筛选时间
                        </td>
                        <td class="TD_STYLE2">
                            <input type="text" :value="item.check_time|cdate" class="INPUT_STYLE2" disabled>
                        </td>
                    </tr>
                    <tr>
                        <td class="TD_STYLE1">
                            录用申请审核意见
                        </td>
                        <td class="TD_STYLE2" colspan="7">
                            <textarea name="pass_checkComment" id="pass_checkComment" value="通过" class="TEXTAREA_STYLE1" rows="4" readonly></textarea>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</body>

</html>

<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            engage_resume: [],
            engage_interview: [],
        },
        methods: {
            load: function () {
                var t = this;
                $.ajax({
                    url: "/employ/register1",
                    type: "Post",
                    data:"id="+@ViewData["id"],
                    success: function (msg) {
                        var dt = eval("(" + msg + ")");
                        t.engage_resume = dt["engage_resume"];
                        t.engage_interview = dt["engage_interview"];
                    }
                })
            },
            Update: function () {
                $.ajax({
                    url: "/employ/register",
                    type: "put",
                    data: $("#form1").serialize(),
                    success: function (msg) {
                        if (msg > 0) {
                            alert('申请成功!');
                            window.location.href = '/employ/register_list';
                        } else {
                            alert('申请失败!');
                            window.location.href = '/employ/register_list';
                        }
                    }
                })
            }
        },
        mounted: function () {
            this.load();
        },
        filters: {
            cdate: function (d) {
                var time = new Date(d);
                var y = time.getFullYear();
                var m = time.getMonth() + 1;
                var d = time.getDate();
                return y + "-" + m + "-" + d;
            }
        }
    })
</script>

